package com.gx.recruitment.service.impl;

import com.gx.recruitment.entity.Comp_jobExample;
import com.gx.recruitment.entity.User_resume;
import com.gx.recruitment.entity.User_resumeExample;
import com.gx.recruitment.mapper.User_resumeMapper;
import com.gx.recruitment.service.UserResumeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserResumeServiceImpl implements UserResumeService {
    @Resource
    private User_resumeMapper user_resumeMapper;
    @Override
    public int insertResume(User_resume record) {
        user_resumeMapper.insert(record);
        return 0;
    }

    @Override
    public List<User_resume> selectResume(User_resumeExample example) {
        return  user_resumeMapper.selectByExample(example);
    }

    @Override
    public int deleteResume(Integer resumeId) {
        user_resumeMapper.deleteByPrimaryKey(resumeId);
        return 0;
    }

    @Override
    public List<User_resume> selectByUserId(User_resumeExample example) {
        return user_resumeMapper.selectByExample(example);
    }

    @Override
    public List<User_resume> selectByResumeId(User_resumeExample example) {
        return user_resumeMapper.selectByExample(example);
    }

    @Override
    public int updateByPrimaryKey(User_resume record) {
        user_resumeMapper.updateByPrimaryKey(record);
        return 0;
    }
}
